<?php
/* This file is part of a copyrighted work; it is distributed with NO WARRANTY.
 * See the file COPYRIGHT.html for more details.
 */
 
  require_once("../shared/common.php");
  $tab = "circulation";
  $restrictToMbrAuth = TRUE;
  $nav = "delete_section";
  require_once("../shared/logincheck.php");
  require_once("../classes/Section.php");
  require_once("../classes/SectionQuery.php");
  require_once("../classes/Localize.php");
  $loc = new Localize(OBIB_LOCALE,$tab);

  $sectionid = $_GET["sectionid"];
  $mbrid = $_GET["mbrid"];

  #****************************************************************************
  #*  Getting member name
  #****************************************************************************
  $sectionQ = new SectionQuery();
  $sectionQ->connect();
  $section = $sectionQ->get($sectionid);
  $sectionQ->close();
  $sectionName = $section->getClaveOne();
  
  #**************************************************************************
  #*  Show confirm page
  #**************************************************************************
  require_once("../shared/header.php");
?>
<center>
<form name="delsectionform" method="POST" action="../circ/mbr_view.php?mbrid=<?php echo HURL($mbrid);?>&amp;reset=Y">
<?php echo $loc->getText("sectionDelConfirmMsg",array("name"=>$sectionName)); ?>
<br><br>
      <input type="button" onClick="self.location='../circ/section_del.php?mbrid=<?php echo HURL($mbrid);?>&sectionid=<?php echo H(addslashes(U($sectionid)));?>&amp;name=<?php echo H(addslashes(U($sectionName)));?>'" value="<?php echo $loc->getText("sectionDelete"); ?>" class="button">
      <input type="submit" value="<?php echo $loc->getText("sectionCancel"); ?>" class="button">
</form>
</center>
<?php 
  include("../shared/footer.php");
?>
